package com.bdqn.qnnews.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xlz
 * @since 2023-12-19
 * @description APP用户信息表
 */
@Data
// 链式语法
@Accessors(chain = true)
@TableName("ap_user")
@Schema(name = "ApUser 对象", description = "APP用户信息表 实体类")
public class ApUser {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
        private Long id;

    @Schema(description = "用户名")
    private String name;

    @Schema(description = "密码,md5加密")
    private String password;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "头像")
    private String image;

    @Schema(description = "0 男	1 女 2 未知")
    private Integer sex;

    @Schema(description = "0 未 1 是")
    @TableField("is_certification")
    private Boolean certification;

    @Schema(description = "是否身份认证")
    @TableField("is_identity_authentication")
    private Boolean identityAuthentication;

    @Schema(description = "0正常	 1锁定")
    private Boolean status;

    @Schema(description = "0 普通用户 1 自媒体人 2 大V")
    private Integer flag;

    @Schema(description = "注册时间")
    private LocalDateTime createdTime;


}
